<?php

class ExampleForm extends Form
{
    protected function setup()
    {
        $this->setElements(array(
            new TextFormElement(
                'validatedData',
                'Validated data (uses the "required" validator)',
                array('required' => null)
            ),
            new TextFormElement(
                'filteredData',
                'Filtered data (uses the "stripTags" filter - will strip HTML tags)',
                null,
                array('stripTags')
            ),
            new SubmitFormElement(
                'submit',
                'Submit'
            )
        ));
    }
}